@extends('frontend/layouts/bootstrap')

@section('content')
<div>
    <span style="font-size: 31.5px;  line-height: 60px;  margin: 10px 0;  font-family: inherit;  font-weight: bold;  color: inherit;  text-rendering: optimizelegibility;  -webkit-margin-before: 0.83em;  -webkit-margin-after: 0.83em;  -webkit-margin-start: 0px;  -webkit-margin-end: 0px;"> Edit MoneyTransfer [{{  $money_transfer->id }}]</span>
    {{ link_to_route('car_balance.money_transfer.index', 'Back MoneyTransfer list', null, array('class' => 'btn btn-info', 'style' => 'float: right; margin: 20px 0 10px 0;')) }}
</div>

<div class="row-fluid">
    {{ Form::open(array('route' => array('car_balance.money_transfer.edit', $money_transfer->id), 'class' => 'form-horizontal')) }}

    <div  class="control-group {{ $errors->first('mongolian_bank_account_id', ' error') }}">
        <label class="control-label" for="mongolian_bank_account_id">Mongolian Bank Account Id</label>
        <div class="controls">
            <input class="" placeholder="Mongolian Bank Account Id" title="Mongolian Bank Account Id" name="mongolian_bank_account_id" type="text" value="{{ Input::old('mongolian_bank_account_id', $money_transfer->mongolian_bank_account_id) }}">
            {{ $errors->first('mongolian_bank_account_id', '<span class="help-inline">:message</span>') }}
        </div>
    </div>
    <div  class="control-group {{ $errors->first('japan_bank_account_id', ' error') }}">
        <label class="control-label" for="japan_bank_account_id">Japan Bank Account Id</label>
        <div class="controls">
            <input class="" placeholder="Japan Bank Account Id" title="Japan Bank Account Id" name="japan_bank_account_id" type="text" value="{{ Input::old('japan_bank_account_id', $money_transfer->japan_bank_account_id) }}">
            {{ $errors->first('japan_bank_account_id', '<span class="help-inline">:message</span>') }}
        </div>
    </div>
    <div  class="control-group {{ $errors->first('transfer_date', ' error') }}">
        <label class="control-label" for="transfer_date">Transfer Date</label>
        <div class="controls">
            <input class="datepicker" placeholder="Transfer Date" title="Transfer Date" name="transfer_date" type="text" value="{{ Input::old('transfer_date', $money_transfer->transfer_date) }}">
            {{ $errors->first('transfer_date', '<span class="help-inline">:message</span>') }}
        </div>
    </div>
    <div  class="control-group {{ $errors->first('amount', ' error') }}">
        <label class="control-label" for="amount">Amount</label>
        <div class="controls">
            <input class="" placeholder="Amount" title="Amount" name="amount" type="text" value="{{ Input::old('amount', $money_transfer->amount) }}">
            {{ $errors->first('amount', '<span class="help-inline">:message</span>') }}
        </div>
    </div>
    <div  class="control-group {{ $errors->first('commission', ' error') }}">
        <label class="control-label" for="commission">Commission</label>
        <div class="controls">
            <input class="" placeholder="Commission" title="Commission" name="commission" type="text" value="{{ Input::old('commission', $money_transfer->commission) }}">
            {{ $errors->first('commission', '<span class="help-inline">:message</span>') }}
        </div>
    </div>


    <div class="form-actions">
        {{  Form::submit('Submit', array('class' => 'btn btn-info')) }} &nbsp;&nbsp;
        {{  link_to_route('car_balance.money_transfer.index', 'Cancel', null, array('class' => 'btn ')) }}
    </div>
    {{  Form::close() }}
@stop

@section('pagestyles')
<link rel="stylesheet" type="text/css" href={{ asset('assets/bootstrap/bootstrap.css') }} />
<link rel="stylesheet" type="text/css" href={{ asset('assets/bootstrap-datepicker/datepicker.css') }} />
@stop

@section('pagescripts')
<script type="text/javascript" src={{ asset('assets/bootstrap/bootstrap.js') }}></script>
<script type="text/javascript" src={{ asset('assets/bootstrap-datepicker/datepicker.js') }}></script>
<script type="text/javascript" >
    $(document).ready(function(){
        $(function() {
            $( ".datepicker" ).datepicker({
                defaultDate: "+0d",
                format: "yyyy-mm-dd",
                autoclose: true
            });
        });
    });
</script>
@stop

